package com.ms.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 修改密码数据传输对象
 */
@Data
@Schema(name = "修改密码数据传输对象", description = "修改密码时使用的账号、旧密码和新密码信息")
public class ChangePasswordDTO {
    // 账号
    @Schema(description = "账号", example = "123", requiredMode = Schema.RequiredMode.REQUIRED)
    private String username;
    // 旧密码
    @Schema(description = "旧密码", example = "123456", requiredMode = Schema.RequiredMode.REQUIRED)
    private String oldPassword;
    // 新密码
    @Schema(description = "新密码", example = "666666", requiredMode = Schema.RequiredMode.REQUIRED)
    private String newPassword;
}
